import cv2
import numpy as np

# 创建窗口
cv2.namedWindow('image', cv2.WINDOW_NORMAL)

# 设置窗口大小
cv2.setWindowProperty('image', cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)

# 显示图像
img = cv2.imdecode(np.fromfile('F:\\剪切gu\\P_005.jpg', dtype=np.uint8), -1)
cv2.imshow('image', img)
cv2.waitKey()
cv2.destroyAllWindows()